/* ============================================================
   23-scorecard.css
   Thematisch aufgeteilt aus default.css + SiTTsBlazor.css
   ============================================================ */

/* ---- aus default.css ---- */



/*TeamLeadBoard */

/* Dashboard Grid*/
.sc-kachel-dashboard {
    padding: 20px;
    min-height: 100vh;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 260px 1fr;
    grid-template-areas:
        "live resp csat iqs top"
        "chart chart ratings ratings agent";
    align-items: stretch;
}

/*Grid Areas */
.sc-kachel-live {
    grid-area: live;
    min-height: 0;
}

.sc-kachel-resp {
    grid-area: resp;
}

.sc-kachel-csat {
    grid-area: csat;
}

.sc-kachel-iqs {
    grid-area: iqs;
}

.sc-kachel-top {
    grid-area: top;
}

.sc-kachel-chart {
    grid-area: chart;
}

.sc-kachel-ratings {
    grid-area: ratings;
}

.sc-kachel-agent {
    grid-area: agent;
}

/* Standard Card Design*/
.sc-kachel-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 0;
    overflow: hidden;
}

/*Live-Tickets Layout */
.sc-kachel-live-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Box für "23 Offen" */
.sc-kachel-live-main {
    background: #f3f4fb;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 82px;
}

    .sc-kachel-live-main .sc-kachel-value {
        font-size: 30px;
        line-height: 1;
        margin-bottom: 4px;
    }

    .sc-kachel-live-main .sc-kachel-muted {
        font-size: 12px;
    }

/* untere Reihe */
.sc-kachel-live-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* kleine Tickettyp-Boxen */
.sc-kachel-live-type {
    background: #f3f4fb;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.sc-kachel-type-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d2147;
    line-height: 1;
    margin-bottom: 4px;
}

.sc-kachel-type-label {
    font-size: 11px;
    color: #9a9ebf;
}

/* Box für "16 Nicht zugewiesen" */
.sc-kachel-alert-box {
    background: #e8eaf6;
    border-radius: 10px;
    padding: 12px;
    border: 2px solid #ff5a6f;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 82px;
    position: relative;
}

    .sc-kachel-alert-box .sc-kachel-value-small {
        font-size: 30px;
        line-height: 1;
    }

    .sc-kachel-alert-box .sc-kachel-muted {
        font-size: 12px;
    }

/* Titel / Texte / Werte*/
.sc-kachel-title {
    font-size: 14px;
    color: #4a4a6a;
    margin-bottom: 10px;
    font-weight: 600;
}

.sc-kachel-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #1d2147;
}

.sc-kachel-value-small {
    font-size: 36px;
}

.sc-kachel-value-mid {
    font-size: 28px;
}

.sc-kachel-unit {
    font-size: 18px;
    margin-left: 4px;
}

.sc-kachel-label {
    color: #474341;
}

.sc-kachel-muted {
    color: #9a9ebf;
    font-size: 14px;
}

/* Antwortzeit*/
.sc-kachel-resp-top {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.sc-kachel-resp-bottom {
    margin-top: auto;
}

/* Hilfsklassen*/
.sc-kachel-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sc-kachel-grow {
    flex: 1;
}

/*Alert Icon*/
.sc-kachel-alert {
    border: 2px solid #ff5a6f;
}

.sc-kachel-alert-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ff5a6f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Placeholder */
.sc-kachel-placeholder {
    background: #b8b8b8;
    border-radius: 4px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex: 1;
}

/* Top Ticketlöser*/
.sc-kachel-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sc-kachel-top-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 14px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        gap: 12px;
    }

        .sc-kachel-top-list li:last-child {
            border-bottom: none;
        }

.sc-kachel-name {
    color: #1d2147;
}

.sc-kachel-score {
    color: #9a9ebf;
    font-size: 11px;
    font-weight: 400;
}

/* Ratings */
.sc-kachel-ratings {
    display: flex;
    flex-direction: column;
}

.sc-kachel-ratings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

    .sc-kachel-ratings-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 0;
        font-size: 13px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

.sc-kachel-ratings-stars {
    color: #ffbf00;
    min-width: 90px;
}

.sc-kachel-ratings-message {
    flex: 1;
    color: #4a4a6a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-kachel-ratings-date {
    color: #9a9ebf;
    font-size: 12px;
    min-width: 55px;
    text-align: right;
}
/* kleinen Call-Widgets*/
.sc-kachel-csat {
    padding: 12px;
}

/* 4 Widgets in 2x2 Grid */
.sc-kachel-call-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

/* ein komplettes Widget */
.sc-kachel-call-widget {
    background: #f3f4fb;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 26px;
    gap: 6px;
    align-items: stretch;
    min-height: 0;
}

/* grüner Innenbereich */
.sc-kachel-call-widget-inner {
    background: #a4c617;
    border-radius: 16px;
    padding: 10px 12px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.sc-kachel-call-top {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

/* mittlerer Bereich */
.sc-kachel-call-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 6px;
    flex: 1;
    margin-top: 4px;
}

.sc-kachel-call-left {
    display: flex;
    align-items: center;
    gap: 3px;
}

.sc-kachel-call-number {
    font-size: 32px;
    font-weight: 700;
}

.sc-kachel-call-icon {
    font-size: 14px;
    line-height: 1;
}

.sc-kachel-call-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.sc-kachel-call-week-label {
    font-size: 10px;
    margin-bottom: 2px;
}

.sc-kachel-call-week-number {
    font-size: 18px;
    font-weight: 700;
}

/* rechter Name senkrecht */
.sc-kachel-call-name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    color: #4a4a6a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
/* Agenten-Kachel */
.sc-kachel-agent {
    display: flex;
    flex-direction: column;
}

.sc-kachel-agent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

    .sc-kachel-agent-list li {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 6px 0;
        font-size: 14px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

        .sc-kachel-agent-list li:last-child {
            border-bottom: none;
        }

.sc-kachel-name {
    text-align: left;
}

.sc-kachel-hours {
    color: #9a9ebf;
    font-size: 11px;
    text-align: right;
}


/* 4 Mail Widgets */
.sc-kachel-iqs {
    padding: 12px;
}

.sc-kachel-mail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

.sc-kachel-mail-widget {
    background: #14a7e6;
    border-radius: 22px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    min-width: 0;
}

.sc-kachel-mail-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.sc-kachel-mail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sc-kachel-mail-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-kachel-mail-count {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}




.sc-kachel-chart-footer {
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9ff;
}

.sc-kachel-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

    .sc-kachel-total-row .sc-kachel-value {
        font-size: 0.9em;
        font-weight: 700;
        color: black;
    }

/* ApexChart spezifisch */
.sc-kachel-ratings .apexcharts-canvas {
    margin: 0 -12px -12px -12px;
}

.sc-kachel-ratings .apexcharts-xaxis text {
    font-size: 11px !important;
    font-weight: 500 !important;
}

.sc-kachel-ratings .apexcharts-legend {
    display: none;
}
